package com.os.ordersystem.service.impl;

import com.os.ordersystem.bean.OrderItem;
import com.os.ordersystem.mapper.OrderItemMapper;
import com.os.ordersystem.service.OrderItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderItemServiceImpl implements OrderItemService {

    @Autowired
    private OrderItemMapper orderItemMapper;


    @Override
    public void addOrderItem(OrderItem orderItem) {
        orderItemMapper.addOrderItem(orderItem);
    }

    @Override
    public int del(Integer id) {
        return orderItemMapper.del(id);
    }

    @Override
    public List<OrderItem> selectAll() {
        return orderItemMapper.selectAll();
    }
}
